<?
include_once "../conn.php";
include_once "index.php";

if(isset($_POST[s1]))
{
	$q1 = "update job_employer_info set JS_number = JS_number + '$_POST[jr]', JP_number = JP_number + '$_POST[jo]' where ename = '$_GET[ename]' ";
	mysql_query($q1) or die(mysql_error());
}

$q1 = "select * from job_employer_info where ename = \"$_GET[ename]\" ";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);

?>

<br>
<br>
<table align=center cellspacing=0 border=1 bordercolor=black width=460 class=BlackText>
<caption align=center class=HeaderClass><b>Company profile for <?=$a1[CompanyName]?> </b></caption>
<tr>
	<td bgcolor=dddddd width=180><b> Company: </b></td>
	<td> <?=$a1[CompanyName]?> </td>
</tr>

<tr>
	<td bgcolor=dddddd width=180><b>Company Profile: </b></td>
	<td><?=$a1[CompanyProfile]?></td>
</tr>

<tr>
	<td bgcolor=dddddd width=180><b>Company Website: </b></td>
	<td><?=$a1[website]?></td>
</tr>

<tr>
	<td bgcolor=dddddd><b> Country: </b></td>
	<td> <?=$a1[CompanyCountry]?> </td>
</tr>

<tr>
	<td bgcolor=dddddd><b> City/State/Zip: </b></td>
	<td> <? 
		echo "$a1[CompanyCity]/";
		if(!empty($a1[CompanyState]))
		{
		echo "$a1[CompanyState]/";
		}
		echo "$a1[CompanyZip]";
	       ?>
	 </td>
</tr>

<tr>
	<td bgcolor=dddddd><b> Address: </b></td>
	<td> <?=$a1[CompanyAddress]?> </td>
</tr>

<tr>
	<td bgcolor=dddddd><b> Phone/Mobile/Fax: </b></td>
	<td> <?
		echo "$a1[CompanyPhone]";
		if(!empty($a1[CompanyPhone2]))
		{
		echo "/$a1[CompanyPhone2]";
		}

		if(!empty($a1[fax]))
		{
			echo "/$a1[fax]";
		}
	       ?> 
	</td>
</tr>

<tr>
	<td bgcolor=dddddd><b> Email: </b></td>
	<td> <a href="sm.php?email=<?=$a1[CompanyEmail]?>" class="BlackLink"> <?=$a1[CompanyEmail]?> </a> </td>
</tr>

</table>

<br>

<center>
	<a href="edit_employer.php?ename=<?=$a1[ename]?>" class=TNA>edit</a> | 
	<a href="delete_employer.php?ename=<?=$a1[ename]?>" class=TNA OnClick="return cdel('employer');">delete</a>
</center>


<? include_once('../footer.php'); ?>